Repository navigation
fix(pm-console): the Android build never holds up a report, and a half-written copy is no copy - #12760
Merged
Conversation
…f-written copy is no copy Found by reading the last three commits of #12723 again after they merged unreviewed. The host's reports are how the edge knows the laptop is there. A report that carries the build is hundreds of kilobytes; on a connection too slow to send it in the twenty seconds a report is given it failed, and the next was built the same way, for as long as the edge lacked the build. Meanwhile nothing arrived, and the edge took the laptop for gone. - A report that carried the build and did not get through (cut off or turned away) is followed at once by one without it; the build is tried again ten minutes later. - A build file that cannot be read is left out the same way instead of stopping the report. - Whether the build and the changed sections fit one report is measured on the report as sent, in bytes. It was estimated in characters, and text outside ASCII is up to three bytes each. - When the build goes alone, the sections it displaced follow at once. - The edge removes the record of its copy before writing a new build over the copy's pieces, so a write that stops half-way cannot leave pieces of two builds to be handed out under the old record, and it removes a larger build's leftover pieces whether or not that record survived. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 21 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
The last three commits of #12723 (the Android build kept at the edge) merged before any reviewer read them. I read them again against
main. Two real faults, both fixed here.1. A build that does not get through held up every report after it
The laptop's reports are how the edge knows the laptop is there. A report that carries the build is hundreds of kilobytes where every other report is a few; a report is given twenty seconds. On a connection too slow for that, the report failed, the next one was built the same way, and so on for as long as the edge still lacked the build. In that time no report arrived at all, so the edge took the laptop for gone while it was there.
2. A half-written copy at the edge was handed out as the old build
The edge wrote a new build over the pieces of the old one and only then recorded the new build. If a write stopped half-way, pieces of two builds sat under the old record, and with the laptop away they were served as the old build. The old record is now removed before its pieces are touched: a half-written copy is no copy, the edge says it has none, serves nothing from it, and asks for the build again. Pieces left by a larger build are removed whether or not its record survived.
Checked
bun test: 156 pass (four new tests, one rewritten).bun run src/server.ts --check, the Worker bundle andwrangler deploy --dry-runpass.Not checked
https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
Generated by Claude Code